package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 材料入库对象 a_instock
 *
 * @date 2025-09-09
 */
public class AInstock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 组织ID */
    @Excel(name = "组织ID")
    private String groupId;

    /** 收货编号 */
    @Excel(name = "收货编号")
    private String receiptNumber;

    /** 收货行号 */
    @Excel(name = "收货行号")
    private String receiptLineNumber;

    /** 采购订单编 */
    @Excel(name = "采购订单编")
    private String purchaseOrderNumber;

    /** 采购行号 */
    @Excel(name = "采购行号")
    private String purchaseLineNumber;

    /** 供应商 */
    @Excel(name = "供应商")
    private String vendor;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String partNumber;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 物料规格 */
    @Excel(name = "物料规格")
    private String materialSpecifications;

    /** 存储位置 */
    @Excel(name = "存储位置")
    private String storageLocation;

    /** 业务时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "业务时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateBusiness;

    /** 实收数量（单位） */
    @Excel(name = "实收数量", readConverterExp = "单=位")
    private String cuantityCollected;

    /** 收货批次号 */
    @Excel(name = "收货批次号")
    private String receiptLotNumber;

    /** 库存批次号 */
    @Excel(name = "库存批次号")
    private String inventoryLotNumber;


    /** 状态 */
    @Excel(name = "状态")
    private String state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGroupId(String groupId) 
    {
        this.groupId = groupId;
    }

    public String getGroupId() 
    {
        return groupId;
    }
    public void setReceiptNumber(String receiptNumber) 
    {
        this.receiptNumber = receiptNumber;
    }

    public String getReceiptNumber() 
    {
        return receiptNumber;
    }
    public void setReceiptLineNumber(String receiptLineNumber) 
    {
        this.receiptLineNumber = receiptLineNumber;
    }

    public String getReceiptLineNumber() 
    {
        return receiptLineNumber;
    }
    public void setPurchaseOrderNumber(String purchaseOrderNumber) 
    {
        this.purchaseOrderNumber = purchaseOrderNumber;
    }

    public String getPurchaseOrderNumber() 
    {
        return purchaseOrderNumber;
    }
    public void setPurchaseLineNumber(String purchaseLineNumber) 
    {
        this.purchaseLineNumber = purchaseLineNumber;
    }

    public String getPurchaseLineNumber() 
    {
        return purchaseLineNumber;
    }
    public void setVendor(String vendor) 
    {
        this.vendor = vendor;
    }

    public String getVendor() 
    {
        return vendor;
    }
    public void setPartNumber(String partNumber) 
    {
        this.partNumber = partNumber;
    }

    public String getPartNumber() 
    {
        return partNumber;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setMaterialSpecifications(String materialSpecifications) 
    {
        this.materialSpecifications = materialSpecifications;
    }

    public String getMaterialSpecifications() 
    {
        return materialSpecifications;
    }
    public void setStorageLocation(String storageLocation) 
    {
        this.storageLocation = storageLocation;
    }

    public String getStorageLocation() 
    {
        return storageLocation;
    }
    public void setDateBusiness(Date dateBusiness) 
    {
        this.dateBusiness = dateBusiness;
    }

    public Date getDateBusiness() 
    {
        return dateBusiness;
    }
    public void setCuantityCollected(String cuantityCollected) 
    {
        this.cuantityCollected = cuantityCollected;
    }

    public String getCuantityCollected() 
    {
        return cuantityCollected;
    }
    public void setReceiptLotNumber(String receiptLotNumber) 
    {
        this.receiptLotNumber = receiptLotNumber;
    }

    public String getReceiptLotNumber() 
    {
        return receiptLotNumber;
    }
    public void setInventoryLotNumber(String inventoryLotNumber) 
    {
        this.inventoryLotNumber = inventoryLotNumber;
    }

    public String getInventoryLotNumber() 
    {
        return inventoryLotNumber;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupId", getGroupId())
            .append("receiptNumber", getReceiptNumber())
            .append("receiptLineNumber", getReceiptLineNumber())
            .append("purchaseOrderNumber", getPurchaseOrderNumber())
            .append("purchaseLineNumber", getPurchaseLineNumber())
            .append("vendor", getVendor())
            .append("partNumber", getPartNumber())
            .append("materialName", getMaterialName())
            .append("materialSpecifications", getMaterialSpecifications())
            .append("storageLocation", getStorageLocation())
            .append("dateBusiness", getDateBusiness())
            .append("cuantityCollected", getCuantityCollected())
            .append("receiptLotNumber", getReceiptLotNumber())
            .append("inventoryLotNumber", getInventoryLotNumber())
            .toString();
    }
}
